home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / Documents / NeXTAnswers / sysadmin.833 < prev    next >
Text File  |  1992-02-06  |  2KB  |  73 lines

  1. {\rtf0\ansi{\fonttbl\f0\fnil Times-Roman;\f1\fmodern Courier;\f2\fmodern Ohlfs;}
  2. \paperw11440
  3. \paperh9000
  4. \margl120
  5. \margr120
  6. {\colortbl;\red0\green0\blue0;}
  7. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b0\i0\ul0\fs28\fc0\cf0 fstab altered system won't boot\
  8. \
  9. Q:  I changed
  10. \b  /etc/fstab
  11. \b0 , and now my NeXT won't boot.  If I boot in single-user mode, I can't edit 
  12. \b /etc/fstab
  13. \b0  to fix it because the file system is read-only.  What do I do to fix it?\
  14. \
  15. A:   
  16. \pard\tx620\tx1240\tx1860\tx2480\tx3100\tx3720\tx4340\tx4980\tx5600\tx6220\fc1\cf1 The start-up script
  17. \b  /etc/rc.boot 
  18. \b0 makes the root filesystem read-write with the command:\
  19. \
  20.     
  21. \f1\fs24 mount -o remount /
  22. \fs28 \
  23.  
  24. \f0 \
  25. The 
  26. \b mount
  27. \b0  command looks in
  28. \b  /etc/fstab
  29. \b0  for an entry that describes "
  30. \b /
  31. \b0 ". It should find a line like:\
  32. \
  33.  
  34. \f1\fs24     /dev/sd0a    /    4.3   rw,noquota,noauto     0    1\
  35.  
  36. \f0\fs28 \
  37. This means that the filesystem on the device sd0a should be mounted as the root ("/") filesystem.  If this line in the 
  38. \b /etc/fstab
  39. \b0  file is missing,  incorrect, or damaged, the mount command will fail.  You are left with a read-only root filesystem.\
  40. \
  41. The solution is to re-mount the root file system with the shell command:\
  42. \
  43.  
  44. \f1\fs24     # mount -o remount /dev/sd0a /\
  45.  
  46. \f0\fs28 \
  47. In this form, you are telling mount exactly which device to use, so it doesn't look in 
  48. \b /etc/fstab
  49. \b0  and get confused.  Once you have the root filesystem mounted read-write, fix it with a text editor or get a copy of a default
  50. \b  /etc/fstab
  51. \b0 .  You can find default copies in 
  52. \b /usr/template/client
  53. \b0 . i.e.:\
  54. \
  55.  
  56. \f1\fs24     # cp /usr/template/client/etc/fstab.sd330 /etc/fstab\
  57.  
  58. \f0\fs28 \
  59. Then shut down and reboot your system:\
  60. \
  61.  
  62. \f1\fs24     # halt\
  63.     ...\
  64.     NeXT>bsd\
  65.  
  66. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\fs28\fc1\cf1 \
  67. QA833\
  68. \
  69. Valid for 1.0\
  70. Valid for 2.0\
  71. \
  72.  
  73.